class HouseDetailData {
  ///小区楼栋信息
  String building;

  ///业主性别code:0女1男
  double gender;

  ///id
  String id;

  ///身份证背面
  String idcardBackUrl;

  ///身份证正面
  String idcardFrontUrl;

  ///业主电话
  String mobile;

  ///业主姓名
  String name;

  ///小区信息
  String point;

  ///小区房间信息
  String room;

  ///审核状态code:1审核中2审核成功3审核失败
  double status;

  HouseDetailData({
    required this.building,
    required this.gender,
    required this.id,
    required this.idcardBackUrl,
    required this.idcardFrontUrl,
    required this.mobile,
    required this.name,
    required this.point,
    required this.room,
    required this.status,
  });

  //json工厂方法
  factory HouseDetailData.fromJson(Map<String, dynamic> json) => HouseDetailData(
        building: json['building'] ?? '',
        gender: json['gender']?.toDouble() ?? 0.0,
        id: json['id'] ?? '',
        idcardBackUrl: json['idcardBackUrl'] ?? '',
        idcardFrontUrl: json['idcardFrontUrl'] ?? '',
        mobile: json['mobile'] ?? '',
        name: json['name'] ?? '',
        point: json['point'] ?? '',
        room: json['room'] ?? '',
        status: json['status']?.toDouble() ?? 0.0,
      );
}
